/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  //查询银行
  router.get('/api/bank', controller.bank.get);
  //查询热点新闻
  router.get('/api/hotnews', controller.hotnews.get);
  //查询热点新闻详情
  router.get('/api/hotnews-details', controller.hotnews.getNewsDetail);
  //提交反馈
  router.post('/api/feedback', controller.feedback.create);
  //参数配置
  router.get('/api/config', controller.config.get);
};
